﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {

            ChinkClass Cclass = new ChinkClass()
            {
                Name = "王燕",
                Age=18
            };
            Console.WriteLine("我的名字是：{0},我永远{1}岁",Cclass.Name,Cclass.Age);  
            Console.WriteLine("哈哈哈哈嗝");                                           //输出
            Console.ReadKey();


        }
    }
    public   class BaseClass
    {
        public int Age { get; set; }
    }
    public  class ChinkClass : BaseClass    //继承
    {
        public string Name { get; set; }
    }
}
